/*
 * TCSS 445 - Major Project
 * 
 * Author: Chris Davidson
 * Author: Dallas Rosson
 */
package model;

/**
 * Patron
 * 
 * A datatype to represent a patron for the Newport project.
 *
 * @author Dallas Rosson
 * @author Chris Davidson
 * @version 1.0, 28 May 2012
 */
public class Patron {
       
    /**
     * The patron name.
     */
    private String my_name = "";
    
    /**
     * The patron address.
     */
    private String my_address = "";
    
    /**
     * The patron state.
     */
    private String my_state = "";
    
    /**
     * The patron zip.
     */
    private int my_zip = 0;
    
    /**
     * The patron email address.
     */
    private String my_email = "";
    
    // Getters
    
    /**
     * @return The patrons name.
     */
    public String getName() {
        
        return my_name.toString();
    }
    
    /**
     * @return The patrons address.
     */
    public String getAddress() {
        
        return my_address.toString();
    }
    
    /**
     * @return The patrons state.
     */
    public String getState() {
        
        return my_state.toString();
    }
    
    /**
     * @return The patrons zip.
     */
    public int getZip() {
        
        return my_zip;
    }
    
    /**
     * @return The patrons email.
     */
    public String getEmail() {
        
        return my_email.toString();
    }
    
    // Setters
    
    /**
     * Sets the patrons name to the passed in value.
     * 
     * @param the_name The patrons name.
     */
    public void setName(final String the_name) {
        
        my_name = the_name.toString();
    }
    
    /*
     * Sets the patrons address to the passed in value.
     * 
     * @param the_address The patrons address.
     */
    public void setAddress(final String the_address) {
        
        my_address = the_address.toString();
    }
    
    /**
     * Sets the patrons state to the passed in value.
     * 
     * @param the_state The patrons state.
     */
    public void setState(final String the_state) {
     
        my_state = the_state.toString();
    }
    
    /**
     * Sets the patrons zip to the passed in value.
     * 
     * @param the_zip The patrons zip.
     */
    public void setZip(final int the_zip) {
        
        my_zip = the_zip;
    }
    
    /**
     * Sets the patrons email to the passed in value.
     * 
     * @param the_email The patrons email.
     */
    public void setEmail(final String the_email) {
        
        my_email = the_email.toString();
    }
    
}
